import dictHelp from "@/utils/dicthelp.js";
export default {
    layout: [
        {
            formType: 'grid-tailwind',
            colNumber: 2,
            cols: [
                {
                    formList: [
                        {dataIndex: "id",},
                        {dataIndex: "type",},
                        {dataIndex: "number",},
                        {dataIndex: "public_number",},
                        {dataIndex: "shipping_schedule_id",},
                        {dataIndex: "supplier_service_id",},
                        {dataIndex: "departure",},
                        {dataIndex: "destination",},
                        {dataIndex: "departure_at",},
                        {dataIndex: "clear_at",},
                        {dataIndex: "arrived_at",},
                        {dataIndex: "close_at",},
                        {dataIndex: "declare_id",},
                        {dataIndex: "clearance_id",},
                        {dataIndex: "status",},
                        {dataIndex: "container_type",},
                    ]
                },
                {
                    formList: [
                        {dataIndex: "single_card_user_id",},
                        {dataIndex: "container_no",},
                        {dataIndex: "seal_no",},
                        {dataIndex: "depot_id",},
                        {dataIndex: "channel_admin_id",},
                        {dataIndex: "finance_id",},
                        {dataIndex: "carrier",},
                        {dataIndex: "remark",},
                        {dataIndex: "internal_remark"},
                    ]
                },
            ]
        },
    ],
    columns: [],
    infoColumns:[
        {
            title: "系统提单号",
            dataIndex: "public_number",
        },
        {
            title: "提单号",
            dataIndex: "number",
            
        },      
        {
            title: "类型",
            dataIndex: "type",
            formType: "radio",
            dict: {name: 'flrstLegType', translation: true,},
        },
        {
            title: "船期/航班",
            dataIndex: "shipping_schedule_id",
            formType: "select",
            dict: dictHelp.shipping_schedule,
        },
        {
            title: "供应商服务",
            dataIndex: "supplier_service_id",
            virtualListProps:{},
            formType: "select",
            dict: dictHelp.supplier_service,
        },
        {
            title: "出发地",
            dataIndex: "departure",
            formType: "select",
            dict: dictHelp.place,
        },
        {
            title: "目的地",
            dataIndex: "destination",
            formType: "select",
            addDisplay: false,
            dict: dictHelp.place,
        },
        {
            title: "出发时间",
            dataIndex: "departure_at",
            formType: "date",
            showTime: true
        },
        {
            title: "到站时间",
            dataIndex: "arrived_at",
            formType: "date",
            showTime: true
        },
        {
            title: "清关时间",
            dataIndex: "clear_at",
            formType: "date",
            showTime: true
        },
        {
            title: "报关代理",
            dataIndex: "declare_id",
            formType: "select",
            search:true,
            dict: dictHelp.supplier_declare,
            hide: true,
        },
        {
            title: "清关代理",
            dataIndex: "clearance_id",
            formType: "select",
            search:true,
            dict: dictHelp.supplier_clearance,
            hide: true,
        },
        {
            title: "单证员",
            dataIndex: "single_card_user_id",
            formType: "select",
            hide: true,
            dict: dictHelp.user,
        },
        {
            title: "渠道管理员",
            dataIndex: "channel_admin_id",
            formType: "select",
            search:true,
            hide: true,
            dict: dictHelp.user,
        },
        {
            title: "财务",
            dataIndex: "finance_id",
            formType: "select",
            dict: dictHelp.user,
        },
        {
            title: "集装箱规格",
            dataIndex: "container_type",
            dict: {name: 'containerType', translation: true,},
            formType: "select",
        },
    ]
}